#pragma once

class Anim
{
public:
	Anim(const char* image, int frames, float time);
	void Step(bool flip = false);
	void Draw(sf::RenderWindow& window, sf::Vector2f& pos, int alpha);
	void Reset();
private:
	void SetFrame();

	sf::Texture text;
	sf::Sprite sprite;
	int frames;
	int activeFrame;
	float timer;
	float time;
	bool flipped;
	int frameW, frameH;
};